package imgtagcounter;
import java.io.*;
import java.util.List;

/**
 * Provides the output interface of the results to stdout.
 * @author Oleg Ruchlis & Marcelo Korn
 */
public class UserOutputWriter{
    /**
     * Printing the content of the list received.
     * @param listEntries is the list of all result pairs
     * 'URL' : 'img tags count'
     */
    UserOutputWriter(List<ListEntry> listEntries){
        // going through all entries of the list
        for(int i = 0 ;  i < listEntries.size() ; i++){
            // printing the pairs of data
            ListEntry current = listEntries.get(i);
            System.out.println(current.getUrl() + " : " + current.getPics());
        }
    }
}
